
#https://leetcode-cn.com/problems/guess-numbers/submissions/

# LCP 01. 猜数字
from typing import List


class Solution:
    def game(self, guess: List[int], answer: List[int]) -> int:
        ret=0
        for i  in range(len(guess)):
            if guess[i]==answer[i]:
                ret+=1
        return ret